package com.ruoyi.encrypt.util;

import cn.hutool.crypto.digest.SM3;
import lombok.extern.slf4j.Slf4j;

/**
 * @author wanghao 913351190@qq.com
 * @create 2022/3/31 9:10
 */
@Slf4j
public abstract class SM3Util {

    public static String encrypt(String text) {
        SM3 sm3 = new SM3();
        return sm3.digestHex(text);
    }


}
